<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\BaseController;
use App\Http\Requests\Auth\RegisterRequest;
use App\Models\Test\User;
class RegisterController extends BaseController
{
    //
    public function store(RegisterRequest $request){
//        return [2];
        $user = new User();
        $user->name=$request->input('name');
        $user->email=$request->input('email');
        $user->password=bcrypt($request->input('password'));

        $user->save();
        return $this->response->created();
    }


}
